package net.neptech.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于存储医生语音转写的文本记录
 */
@Data
@NoArgsConstructor  // 👈 必须加
public class SpeechText {
    private String userId;       // 用户ID
    private String doctorName;   // 医生姓名（前端传）
    private String role;         // 职称/科室
    private String text;         // 转写文本
    private Long timestamp;      // 时间戳

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public SpeechText(String userId, String doctorName, String role, String text, Long timestamp) {
        this.userId = userId;
        this.doctorName = doctorName;
        this.role = role;
        this.text = text;
        this.timestamp = timestamp;
    }
}